<template>
	<view>
		<uni-popup ref="popup_dialog" type="dialog">
			<uni-popup-dialog :content="message" @confirm="confirm" :placeholder="placeholder" :mode="mode" :title="title"></uni-popup-dialog>
		</uni-popup>
	</view>
</template>

<script>
	import uniPopup from '@/components/uni-popup/uni-popup.vue'
	import uniPopupMessage from '@/components/uni-popup/uni-popup-message.vue'
	import uniPopupDialog from '@/components/uni-popup/uni-popup-dialog.vue'
	
	export default {
		name: 'SelfPopupDialog',
		components:{
			uniPopup,
			uniPopupMessage,
			uniPopupDialog
		}
		,props:{
			confirmBtn:Function,
			message:String,
			title:String,
			mode:String,
			placeholder:String
		}
		,data() {
			return {
				
			};
		}
		,methods:{
			async open(){
				this.$refs.popup_dialog.open();
			}
			,confirm(done,value){
				done();
				this.confirmBtn(value);
				
			}
		}
	}
</script>

<style>

</style>
